package cn.springtest;

import org.apache.log4j.Logger;

public class Dialogue {
    private Logger logger=Logger.getLogger(Dialogue.class);
    private String LUFFY=null;
    private String krohn =null;


    public Dialogue() {}
    public Dialogue(String LUFFY, String krohn) {
        this.LUFFY = LUFFY;
        this.krohn = krohn;
    }

    public String getLUFFY() {
        return LUFFY;
    }

    public void setLUFFY(String LUFFY) {
        this.LUFFY = LUFFY;
    }

    public String getKrohn() {
        return krohn;
    }

    public void setKrohn(String krohn) {
        this.krohn = krohn;
    }

    public void LUFFYprint(){
        logger.info("路飞:"+this.getLUFFY());
    }


    public void krohnYprint(){
        logger.info("诸葛亮:"+this.getKrohn());
    }
}
